<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class ArticleModel extends RelationModel {
	  protected $_validate = array(

	);
	 protected $_auto = array (
	 	array('add_time','time',1,'function'),
	  );
	 protected $_link = array(
	 	'article_classify'=>array(
		 	'mapping_type'      => self::BELONGS_TO,
		 	'class_name'        => 'article_classify',
		 	'foreign_key'   => 'a_id',
		 	'as_fields' =>'title:article_classify_title'
	 	)

 	);
}